package it.aekidna.onair.vo
{
	import flash.filesystem.File;
	
	[Bindable]
	public class AirModuleConfig
	{
		private var _executable : String;
		public var packageUrl : String;
		public var localRepository : File;
		public var versionFileUrl : String;
		public var ignoreSignature : Boolean = false;
		public var runOnStartup : Boolean = false;
		public var name : String; 
		public var version : String;
		
		public function set executable( inValue : String ) : void
		{
			_executable = inValue;
			if( _executable )
			{
				var tmp : File = new File();
				tmp.url = "app-storage:/ModulesCache/" + _executable.replace( /\..+$/, "" );
				localRepository = tmp;
			}
			else
				localRepository = null;
		}
		
		public function get executable() : String
		{
			return _executable;
		}
	}
}